using System;
using Sce.Pss.Core.Input;

namespace CleanCodeExample
{
	public static class GamePadErweiterung
	{
		public static bool IstLgedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.ButtonsDown.HasFlag(GamePadButtons.L);
		}

		public static bool IstDigitalNachObenGedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.Buttons.HasFlag(GamePadButtons.Up);
		}

		public static bool IstDigitalNachUntenGedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.Buttons.HasFlag(GamePadButtons.Down);
		}

		public static bool IstDigitalNachLinksGedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.Buttons.HasFlag(GamePadButtons.Left);
		}

		public static bool IstDigitalNachRechtsGedrueckt(this GamePadData gamepaddata)
		{
			return gamepaddata.Buttons.HasFlag(GamePadButtons.Right);
		}
	}
}

